const path = require('path');
const DonePlugin = require('./plugins/DonePlugin')
const RunPlugin = require('./plugins/RunPlugin')
module.exports = {
  mode: 'development',
  // devtool: 'source-map',
  entry: './src/index.js',
  output: {
    filename: '[name].js',
    path: path.resolve(__dirname, 'build')
  },
  resolve: {
    extensions: ['.js','.json','.ts']
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        use: [
          path.resolve(__dirname, './loaders/logger1-loader.js'),
          path.resolve(__dirname, './loaders/logger2-loader.js'),
        ]
      },
     
    ]
  },
  plugins: [
    new RunPlugin(),
    new DonePlugin()
  ]
}